Keep titlebar up to date