Replace some ng-show with ng-if

Didn't measure it thoroughly but it should mean some slight speed improvements.