Update GenerateFormController.js

adding automatically save function for form