fix the resolve thing

- use $stateProvider instead of $routeProvider
- now index.json gets reloaded every time the list is being displayed