Addedon enter and dynamically updating the global collection on add ing product and editting it