created controller and GUI