Added support for updating the global collection on edit and add of the prodcut
also added support for submitting the form on click