update input in cart