New logic to the cart view