fixed modal with angularjs
Implemented saving of the form