     }
 }
 
-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
-    }
-}+//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
+//    }
+//}

        addBarButton()
        
        let downSwipe = UISwipeGestureRecognizer(target: self, action: Selector("handleDownSwipe:"))
        downSwipe.direction = .Down
        downSwipe.delegate = self
        tableView.addGestureRecognizer(downSwipe)
        
        if let selectedAccount = selectedAccount {
            navigationItem.title = selectedAccount.name
        }
    }

    func reloadTransactions() {

    
    let customPresentAnimationController = CustomPresentAnimationController()
    let customDismissAnimationController = CustomDismissAnimationController()
    
    var refreshControl: UIRefreshControl?

    override func viewDidLoad() {
        super.viewDidLoad()
