redone routes using ajax