now all pages can use $scope.loading to control showing/hiding of loading message