         alarms.append(alarm)
         //ud.setObject(alarms!,forKey: alarmKey)
         var alarmDict = ud.dictionaryForKey(alarmKey) ?? [:]
-        alarmDict[alarm.UUID] = ["title": alarm.title, "timeStr": alarm.timeStr, "date": alarm.date, "enabled": alarm.enabled, "UUID": alarm.UUID, "mediaID": alarm.mediaID]
+        alarmDict[alarm.UUID] = ["label": alarm.label, "timeStr": alarm.timeStr, "date": alarm.date, "enabled": alarm.enabled, "UUID": alarm.UUID, "mediaID": alarm.mediaID]
         ud.setObject(alarmDict, forKey: alarmKey)
         ud.synchronize()
     }


    }
    //helpers for alarm edit. maybe not a good design
    func titleAtIndex(index: Int) -> String
    {
        return alarms[index].title
    }
    
    func timeStrAtIndex(index: Int) -> String

        return alarms[index].mediaID
    }
    
    func setLabel(label: String, AtIndex index: Int)
    {
        alarms[index].label = label
    }
    
    func setDate(date: NSDate, AtIndex index: Int)
    {
        alarms[index].date = date
    }
    
    func setTimeStr(timeStr: String, AtIndex index: Int)
    {
        alarms[index].timeStr = timeStr
    }
    
    func setMediaID(mediaID: String, AtIndex index: Int)
    {
        alarms[index].mediaID = mediaID
    }
    
    //SequenceType Protocol
    private var currentIndex = 0
    func generate() -> GeneratorOf<Alarm> {
