update undo settings