Added loading bar for $http calls