     
     // MARK: Transfer between 2 views
     
-//    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
-//        
-//        let vc = segue.destinationViewController 
-//        
-//        if vc is AddTransactionViewController {
-//            let addTransactionViewController = vc as! AddTransactionViewController
-//            
-//            var indexPath: AnyObject!
-//            indexPath = tableView.indexPathForCell(sender as! UITableViewCell)
-//
-//            addTransactionViewController.selectedTransaction = sampleTransactions[indexPath.section][indexPath.row]
-//            print("pass selectedTransaction to AddTransactionView: \(addTransactionViewController.selectedTransaction))", terminator: "\n")
-//        }
-//    }
+    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
+        
+        let vc = segue.destinationViewController 
+        
+        if vc is AddTransactionViewController {
+            let addTransactionViewController = vc as! AddTransactionViewController
+            
+            var indexPath: AnyObject!
+            indexPath = tableView.indexPathForCell(sender as! UITableViewCell)
+
+            addTransactionViewController.selectedTransaction = sampleTransactions[indexPath.section][indexPath.row]
+            print("pass selectedTransaction to AddTransactionView: \(addTransactionViewController.selectedTransaction))", terminator: "\n")
+        }
+    }
 }
 
 // MARK: Table view

    }
}

extension AccountDetailViewController: UIViewControllerTransitioningDelegate {
    
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        if segue.identifier == "QuickMode" {
            let toViewController = segue.destinationViewController as! UINavigationController
            toViewController.transitioningDelegate = self
            customPresentAnimationController.animationType = CustomSegueAnimation.SwipeDown
            customDismissAnimationController.animationType = CustomSegueAnimation.SwipeDown
        } else {
            // Edit transaction
            let vc = segue.destinationViewController
            
            if vc is AddTransactionViewController {
                let addTransactionViewController = vc as! AddTransactionViewController
                
                var indexPath: AnyObject!
                indexPath = tableView.indexPathForCell(sender as! UITableViewCell)
                
                addTransactionViewController.selectedTransaction = sampleTransactions[indexPath.section][indexPath.row]
                print("pass selectedTransaction to AddTransactionView: \(addTransactionViewController.selectedTransaction))", terminator: "\n")
            }
        }
    }
    
    func animationControllerForPresentedController(presented: UIViewController, presentingController presenting: UIViewController, sourceController source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
        return customPresentAnimationController
    }
    
    func animationControllerForDismissedController(dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
        return customDismissAnimationController
    }
}
    
    let customPresentAnimationController = CustomPresentAnimationController()
    let customDismissAnimationController = CustomDismissAnimationController()
    
    var refreshControl: UIRefreshControl?

    override func viewDidLoad() {
        super.viewDidLoad()
