separated from Main to JavaFxGUI