Added update and clear methods to cart