[sw] use ng-switch for switching stuff