/** Called when user click on the "new" button */
  @FXML
  private void handleNewPerson() {
    Person person = new Person();
    boolean okClicked = mainApp.showPersonEditDialog(person);

    if (okClicked) {
      mainApp.getPersonData().add(person);
    }
  }
  /**
   * Is called by the main application to give a reference back to itself.
   *
   * @param mainApp
   */
  public void setMainApp(MainApp mainApp) {
    this.mainApp = mainApp;

    // Add observable list data to the table
    personTable.setItems(mainApp.getPersonData());
  }