         var dateList : [NSDate] = []
         
         var today = NSDate()
-        for dayDiff in -7 ... 7 {
+        for dayDiff in -1 * self.daysBeforeAndAfter ... self.daysBeforeAndAfter {
             var timeInterval = NSTimeInterval(dayDiff * 24 * 3600)
             dateList.append(today.dateByAddingTimeInterval(timeInterval))
         }

        // self.navigationItem.rightBarButtonItem = self.editButtonItem()
        
        self.tableView.registerNib(UINib(nibName: "ListOfTaskListsTableViewCell", bundle: nil), forCellReuseIdentifier: "ListOfTaskListsTableViewCell")
    }

    override func didReceiveMemoryWarning() {

    private func displayTodayCell(){
        let todayIndexPath = NSIndexPath(forRow: self.listOfDays.count / 2, inSection: 0)
        self.tableView.scrollToRowAtIndexPath(todayIndexPath, atScrollPosition: UITableViewScrollPosition.Top, animated: false)
    }
    
    private func setTitle(){
        self.navigationItem.title = "\(self.daysBeforeAndAfter) days before and after"
    }
    
    override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
