update cart model