fix empty cart and add to cart issues