make undo and redo not sensitive in the beginning