Proper undo and delete buttons that appear when deleting an item