add ajax request and post recv handler.