refactor ng-class