Fixes problem where clicking the tab header text wouldn't change tabs.

The new changes make's the tab headers look better and fixes the problem where it was a problem to change tabs.  It also loads and sorts the tabs alphabetically now.