proper hook of after_transition callback and update order contents