fix issue with nested tabs
Merge pull request #1 from davepenfold/master

fix issue with nested tabs