adds functionality to addtocart button and feedback in consolelog