update cart ui logic