rearrange codes of component of FXML