updateWindowTitle()
update the window title when the domain changes or the username changes