use ng-switch in page