added edit item functionality