set up ng-flow