@FXML
 private void handleNewTitle() {
   Programs tempProgs = new Programs();
   boolean okClicked = mainApp.showProgramsEditDialog(tempProgs);
   if (okClicked) {
     mainApp.getProgramsData().add(tempProgs);
   }
 }
 @FXML
 private void handleEditTitle() {
   Programs selectedTitle = progsTable.getSelectionModel().getSelectedItem();
   if (selectedTitle != null) {
     boolean okClicked = mainApp.showProgramsEditDialog(selectedTitle);
     if (okClicked) {
       showProgramsDetails(selectedTitle);
     }
   } else {
     // Nothing selected.
     Alert alert = new Alert(AlertType.ERROR);
     alert.initOwner(mainApp.getPrimaryStage());
     alert.setTitle("No Selection");
     alert.setHeaderText("No Title Selected!");
     alert.setContentText("Please select a Title in the table!");
     alert.showAndWait();
   }
 }