edit item implementation logic updated