added routechange listener for login