change from code to fxml