use $http request instead of $resource