added grouping of events by days