Refactored the tab group to seperate them for modularity and also for back button navigation.