add route change function example