Replaced ng-show with ng-if