modify the order status and related function