implement onTabTitleChanged