improved cart functionality (add item to cart on click, update checkbox on refresh)