some dialogue subview cleanup and start of command dispatching refactoring