first implementation of gui visible functions in controller.