Fix problem where selected command was not run
Fix problem with global commands
Remove code that tracks modified state

… for now. It did not affect any view and was
relying on resetting the UndoManager.