implementing event search