Automatically change tab text when navigating