connecting view controller to model