Add Ok button to Edit dialog to submit the form.
Add ng-controller in the form.