adding edit and update methods for products