Add routeActive() function