replace references to $scope with controller as