             navigationController!.popViewControllerAnimated(true)
         }
 
+        selectedTransaction = nil
         closeTabAndSwitchToHome()
     }
     

        case 0:
            return 2
        case 1:
            return 3
        case 2:
            return 1
        default:
            return 0

        
        if isShowDatePicker {
            isShowDatePicker = false
            tableView.reloadSections(NSIndexSet(index: 2), withRowAnimation: UITableViewRowAnimation.Automatic)
        } else {
            isShowDatePicker = true
            tableView.reloadSections(NSIndexSet(index: 2), withRowAnimation: UITableViewRowAnimation.Automatic)
        }
    }
    
