fix issue with nested tabs

Minor fix to resolve issue where selecting tabs would incorrectly hide tab panels in a nested tab.