Refactor to PUT with restangular