updating the controller