working with tabs and ofcourse some more directives ng-init ng-click
making the code cleaner by putting all logic in a new controller such as PanelController