Add AJAX to delete method.