fixed the tab name updating