refactoring WIP. MyMainWindow refactored