Improved handling of AJAX deletes