implement action for delete event