add switch to event search