first version of javaFX, a lot of chnages in main()