Added update operation
Correctly dealing with item id in update operation