Added security to destroy button