getAllEvents and deleteAllEvents added