modify add to cart event effeciently