Dev changes for viewing tabs and refactoring the tab code.