worked on add to cart functionality