update order of event handlers invoking