get model from controller.