Added order status change function