Bug fix - Disable/enable undo/redo menu on some conditions