Added filtering functionality to EventController to the index method