added an add to cart function