update product and category