added javafx stuff from adam bien