Implemented getAllEvents in main controller