replaced add to cart with purchase. closes #10