The item clicked is now shown in the text boxes.
The items are deleted and updated now. 
But in the update a new item is created instead of the old item update.
Item is now updated successfully.