oll-doc: clean up mainwindow initialization