Undo function adding