fix routes in ajax