use the promise of angular resources in admin part