ajax request in request handler