Updated template function call to match core's signature change
Now grouping activities by header name

From now on, the activities are not grouped by single days but by
grouping string, like "Today", "Yesterday", "2 months ago", etc.