some work done  on submit functions with angular