Adds table view logic for grouping events by week