Removed unnecessary elements from view with ng-if