add a listener before updating a product

add a listener before updating a product