add the route search function