Use route.active to emit switch