use restangular to talk with the rest api