set title directly from the tab, don't ask the window to find the index