implemented AJAX destroy