Update the tab title when changing URL