update mainwindow GUI