add to cart and purchase functionality added