Fixed: undo and redo enabled when instance loaded, switching between modes and read-only state.
Updated comment.
Simplfied the code updating commands so they are correctly updated in all cases.
Merge branch 't/10249b'