update product funcion.