initialize all modes with current main_window
mw, modes: use label for window title