fixed popup and mainwindow interaction
minor fixes