Improving cart functionality