editing the item was getting changed to the first item, fixed this issue