add order update function