plugging into the route change