Use new JavaFx dialog api