add to cart function introduced