wiring up models to controllers