finish AJAX calls, and add text xml