fixed the restangular calls in the controllers.js file