modifying AJAX calls