Updated cart functionality