Fixing FXML references to behave like java