Tighten up what is final
Change createMainWindow to createMainWindowFrame