component to send ajax request.