added controller to the GUI