Updating the controller