add selected tab in main controller