implement IoC pattern for main window objects
allocate interfaces for mainwindow, tabbar, toolbar [win32]