added item update functionality