Change routes to states. Use stateParams instead of routeParams.