changed ng-show to ng-if

to prevent race conditions between the html being rendered and  when the service returns the values to be drawn