added a PanelController with selectTab and isSelected functions to highlight active tab and clean html