Add content and changed logic for cart functionality