             break
             
         case UISwipeGestureRecognizerDirection.Down:
-            //            let dvc = self.storyboard?.instantiateViewControllerWithIdentifier("QuickVC") as! QuickViewController
-            //            let nc = UINavigationController(rootViewController: dvc)
-            //            self.presentViewController(nc, animated: true, completion: nil)
             performSegueWithIdentifier("QuickMode", sender: self)
             
         default:

    @IBAction func onDoneDatePopup(sender: UIButton) {
        
        let formatter1 = DateFormatter.MM_dd_yyyy
        let fromDate = formatter1.dateFromString((fromButton.titleLabel!.text)!)
        let toDate = formatter1.dateFromString((toButton.titleLabel!.text)!)
        
        let formater2 = DateFormatter.MMM_dd_yyyy
        navigationItem.title = formater2.stringFromDate(fromDate!) + " - " + formater2.stringFromDate(toDate!)

                break
            case 1:
                viewMode = ViewMode.Monthly
                
                let (beginMonth, endMonth) = getMonth(monthIndex)
                fromDate = beginMonth
                toDate = endMonth.dateByAddingTimeInterval(oneDay)
                
                navigationItem.title = DateFormatter.MMMM.stringFromDate(beginMonth)
                break
            case 2:
                viewMode = ViewMode.Yearly
                
                let (beginYear, endYear) = getYear(yearIndex)
                fromDate = beginYear
                toDate = endYear.dateByAddingTimeInterval(oneDay)
                
                navigationItem.title = DateFormatter.yyyy.stringFromDate(beginYear)
                break
            case 3:
                viewMode = ViewMode.Custom
                viewModeTableView.reloadData()
                showPopup(datePopup)
                return
            default:
