update routing after login