[Issue #43] Fix refresh of mainwindow output