updating shopping cart functionality