added $loadings at $rootScope.