tried to improve add item but failed
delete record works provided you do not add a new item to the cart