         headers[event.rendered_date] = true
     return {events, headers: header_list}
 
-  createEventTileObject: (event) ->
+  createEventTileObject: (event, allLabels) ->
     object = {
       key: event.key
       event
       id: "event_" + event.id
       type: event.state
-      labels: @state.labels
+      labels: allLabels
     }
 
     if event.edit_mode

        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])
        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}


      temp_event: true
    }
    new_state = {
      temp_event: @createEventTileObject(event, @state.labels)
      counter: @state.counter + 1
      in_edit: true
    }
