disable undo at the beginning