try {
// Load quiz options view.
FXMLLoader loader = new FXMLLoader();
loader.setLocation(MainQuizCreator.class.getResource("view/QuizOptionsScene.fxml"));
AnchorPane QuizOptionsScene = (AnchorPane) loader.load();
QuizOptionsController controller;
controller = loader.getController();
controller.setMainQuizCreator(this);
if(quiz != null) {
//showing quiz private BorderPane rootLayout;
controller.setQuizName(QuizFactory.getQuizTitle(quiz));
controller.setFields(quiz);
}
// Set person overview into the center of root layout.
rootLayout.setCenter(QuizOptionsScene);
primaryStage.setMaximized(false);
} catch (IOException e) {