change display method for delete and undo