Enable and disable of Undo Action