common trait for loading fxml controllers