adds tab controller directive
sets tab to currect number when anchor in tab controller is clicked
only shows currently selected tab