Attached controller to model