changed GUI to JavaFX