formatting for tp request ng-switch fixed