Reroute for ajax request