Set window title when tab changed.