fixed ng-model formdata scope issues