Refactored tabs functionality. Fixes #329.
Merge pull request #342 from duke-libraries/issue-329

Refactored tabs functionality. Fixes #329.