update departments controller about order.