detect when new tab is opened in Flutter Tutorials