main window title proper updating