removed unecessary $resource dependency for models