only show progress when there is a main window