Refactored the fxml files to remove an error