update product state