cleaned up jfx example to simplify controller