set cartItem in cart add and update events