added search functionality to the events page