                 self.present(alert, animated: true) {
                 }
                 return false
-            } 
+            }
+            
         }
         return true
     }

        
        addDoneButton() // Adds done button to num pad
        
<<<<<<< HEAD
        //Check timepicker
        toggleTimePickerColor(label: wakeLabel, timePickerHidden: wakeTimePickerHidden)
        toggleTimePickerColor(label: sleepLabel, timePickerHidden: sleepTimePickerHidden)
        
        let dateFormatter = DateFormatter()
        dateFormatter.dateFormat = ""
        let date = dateFormatter.date(from: )
        
        timePickerChanged(label: wakeTimeLabel, picker: wakeTimePicker)
        timePickerChanged(label: sleepTimeLabel, picker: sleepTimePicker)
=======
        // Time picker setup
        let wakeTime = defaults.string(forKey: "wakeTime")!
        let sleepTime = defaults.string(forKey: "sleepTime")!
        
        
        wakeTimePicker.setDate(dateFormatter.date(from: wakeTime)!, animated: false)
        sleepTimePicker.setDate(dateFormatter.date(from: sleepTime)!, animated: false)
        
        timePickerChanged(label: wakeTimeLabel, timePicker: wakeTimePicker)
        timePickerChanged(label: sleepTimeLabel, timePicker: sleepTimePicker)
        
        toggleTimePickerColor(titleLabel: wakeLabel, timePickerHidden: wakeTimePickerHidden)
        toggleTimePickerColor(titleLabel: sleepLabel, timePickerHidden: sleepTimePickerHidden)
>>>>>>> origin/master
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
<<<<<<< HEAD
        tableView.deselectRow(at: indexPath, animated: true)
        if indexPath.section == 1 && indexPath.row == 2 {
            // Wake cell
=======
        // Animates selection
        tableView.deselectRow(at: indexPath, animated: true)
        
        // Toggles wake date picker when when cell for time is clicked
        if indexPath.section == 1 && indexPath.row == 2 {
            
>>>>>>> origin/master
            // Shows and hides time picker: toggleTimePicker()
            wakeTimePickerHidden = !wakeTimePickerHidden
            tableView.beginUpdates()
            tableView.endUpdates()
            
<<<<<<< HEAD
            toggleTimePickerColor(label: wakeLabel, timePickerHidden: wakeTimePickerHidden)
        }
        if indexPath.section == 1 && indexPath.row == 4 {
            // Sleep cell
            // Wake cell
=======
            toggleTimePickerColor(titleLabel: wakeLabel, timePickerHidden: wakeTimePickerHidden)
        }
        // Toggles wake date picker when when cell for time is clicked
        if indexPath.section == 1 && indexPath.row == 4 {
            
>>>>>>> origin/master
            // Shows and hides time picker: toggleTimePicker()
            sleepTimePickerHidden = !sleepTimePickerHidden
            tableView.beginUpdates()
            tableView.endUpdates()
            
<<<<<<< HEAD
            toggleTimePickerColor(label: sleepLabel, timePickerHidden: sleepTimePickerHidden)
=======
            toggleTimePickerColor(titleLabel: sleepLabel, timePickerHidden: sleepTimePickerHidden)
>>>>>>> origin/master
        }
    }
    
    override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
        if indexPath.section == 0 && indexPath.row == 1{
            if waterSwitch.isOn {
                customWaterIntakeCell.isHidden = false
                return 55.0

        if timePickerHidden == true {
            titleLabel.textColor = UIColor.black
        }
    }
    
    @IBAction func helptoSettings(segue:UIStoryboardSegue) {
