update window title appropriate