adding ajax redirects