Convert ng-show to ng-if in navigation