add module instance to the mainwindow.
Merge pull request #3 from pbesedm/feature/mainwindow

add module instance to the mainwindow.