updating and integrating JavaFX GUI