moved form submit methods from click on submit button to form ng-submit