elcontrol and event barrier