Implemented update and edit for products