optimized DOM with ng-if