fix to selected tab
more work using ng-class functions