fix update on changed tab in mainwindow