set window title before opening the menu