update routes for redirect