ensures selected tab is highlighted