changed the way we get access to the Javafx runtime