Fixed title not updating when switching tabs