added auto update for the items added to cart