include javaFX and refactoring