frame now uses javafx frame