         let (begin, end) = getMonth(0)
         fromDate = begin
         toDate = end.dateByAddingTimeInterval(oneDay)
+        
+        print("from: \(DateFormatter.E_MMM_dd_yyyy.stringFromDate(fromDate!))")
+        print("to: \(DateFormatter.E_MMM_dd_yyyy.stringFromDate(toDate!))")
 
         // TODO: set data for table view based on fromDate and toDate
         reloadDateRange()

                if beginWeek != nil && endWeek != nil {
                    navigationItem.title = getWeekText(beginWeek!, endWeek: endWeek!)
                }
                break
            case 1:
                viewMode = ViewMode.Monthly
                navigationItem.title = DateFormatter.MMMM.stringFromDate(NSDate())
                break
            case 2:
                viewMode = ViewMode.Yearly
                navigationItem.title = DateFormatter.yyyy.stringFromDate(NSDate())
                break
            case 3:
                viewMode = ViewMode.Custom

    
    @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)!)
