allowing the controller to set the model of an app