added JavaFX dialogs support