Added update state method to OrderController.