add $controller to model