data pull changed from controller to model