update functionlity for controllers.