fix the tabs so they show the selected tab