     // MARK: - Table view data source
     
     override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
-        return 50
+        return 60
     }
 
     override func numberOfSectionsInTableView(tableView: UITableView) -> Int {

        let cells = tableView.visibleCells() as? [UITableViewCell]
        if cells != nil
        {
            assert( cells!.count==alarms.count, "alarms not been updated correctly")
            var count = cells!.count
            while count>0
            {
                if alarms[count-1].enabled
                {
                    (cells![count-1].accessoryView as! UISwitch).setOn(true, animated: false)
                    cells![count-1].backgroundColor = UIColor(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)


    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        var cell = tableView.dequeueReusableCellWithIdentifier("AlarmCell", forIndexPath: indexPath) as! UITableViewCell
        
            //cell = UITableViewCell(style: .Subtitle, reuseIdentifier: "AlarmCell")
            cell.tag = indexPath.row
            let ala = Alarms.sharedInstance[indexPath.row] as Alarm
            cell.textLabel?.text = ala.timeStr
            cell.detailTextLabel?.text = ala.title
        
        

        // Configure the cell...
        
        let sw = UISwitch(frame: CGRect())
        //tag is used to indicate which row had been touched
        
        sw.tag = indexPath.row

        //cell.detailTextLabel?.text = ala.time
        cell.backgroundColor = UIColor(red: 0.8, green: 0.8, blue: 0.8, alpha: 1.0)
        sw.addTarget(self, action: "SwitchTapped:", forControlEvents: UIControlEvents.TouchUpInside)
