make sure the title updates in the tab