Added redirect to the state 'home' using resolve