Add logic for indicating selected tab.