structure for favorites action
used stateProvider instead of routeProvider