update controller and GUI