add the edit mode to the FXML MVC