refactored destroy action