Updates the controller class.