rewritten UI in JavaFX