optimize navbar speed through reducing ng-repeat loops