For preventing freezes of UI, modify priorities for dispatching actions of UI elements.