refactored delete buttons