Use ui state change events.