         break
       objects.push {key: header.key, header, id: "header_" + j}
       while i < events.length and events[i].rendered_date == header.date
-        objects.push @createEventTileObject(events[i])
+        objects.push @createEventTileObject(events[i], labels)
         i++
 
     if i < events.length
       future_events = true
-
-    labels = {}
-    for event in events
-      for label in event.labels
-        if label of labels
-          labels[label].push event.id
-        else
-          labels[label] = [event.id]
 
     return {objects, past_events, future_events, labels}
 

  getAllTimelineObjects: (events, headers, view_time_range) ->
    if not view_time_range?
      view_time_range = @getViewTimeRange @state.view_type
    # Reads the events and headers off of state, orders them, and returns them
    objects = []
    i = 0

        headers[event.rendered_date] = true
    return {events, headers: header_list}

  createEventTileObject: (event, allLabels) ->
    object = {
      key: event.key
      event
      id: "event_" + event.id
      type: event.state
      labels: allLabels
    }

    if event.edit_mode
