Design review

Extracted all business logic from the window classes (separated view and
controller)