add to cart implemented using local storage