Implemented AJAX for destroy unit