fixed ng-if statements to not create anchor tag