Added function to update element of an item
Added function to update element of an item
added functionality to update function