replace angular-resource with restangular