Added filtering functionality to EventController index method