update AJAX calls