   
   override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
     print("indexPath.row: \(indexPath.row)" )
+    NSUserDefaults.standardUserDefaults().setInteger(indexPath.row, forKey: "ChecklistIndex")
     let checklist = dataModel.checklists[indexPath.row]
     performSegueWithIdentifier("ShowChecklist", sender: checklist)
   }


import UIKit

class AllListsTableViewController: UITableViewController, ListDetailViewControllerDelegate {
  var dataModel: DataModel!
  
  override func viewDidLoad() {

      
    }
  
  // MARK: Navigation Controller Delegate
  func navigationController(navigationController: UINavigationController, willShowViewController viewController: UIViewController, animated: Bool) {
    if viewController == self {
      NSUserDefaults.standardUserDefaults().setInteger(-1, forKey: "ChecklistIndex")
    }
  }
  
}
