improves loading of events in calendar