     override func viewWillAppear(animated: Bool) {
         super.viewWillAppear(animated)
         
+        vpns = VPNDataManager.sharedManager.allVPN()
+        
         if let activatedVPN = VPNDataManager.sharedManager.activatedVPN {
             activatedVPNID = activatedVPN.ID
         }
         
         tableView.reloadData()
-        
-        let ping = SimplePing(hostName: "baidu.com")
+    }
+    
+    override func viewWillDisappear(animated: Bool) {
+        super.viewWillDisappear(animated)
+        
+        vpns = [VPN]()
     }
 
     // MARK: - Table view data source

    
    override func viewDidLoad() {
        super.viewDidLoad()

        vpns = VPNDataManager.sharedManager.allVPN()
        
        NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("VPNDidCreate:"), name: kLTVPNDidCreate, object: nil)
        NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("VPNDidUpdate:"), name: kLTVPNDidUpdate, object: nil)
        NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("VPNDidRemove:"), name: kLTVPNDidRemove, object: nil)
        NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("VPNDidDuplicate:"), name: kLTVPNDidDuplicate, object: nil)
        
        NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("pingDidUpdate:"), name: "kLTPingDidUpdate", object: nil)
        NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("pingDidComplete:"), name: "kLTPingDidComplete", object: nil)

    
    // MARK: - Notifications
    
    func reloadDataAndPopDetail(notifiation: NSNotification) {
        vpns = VPNDataManager.sharedManager.allVPN()
        tableView.reloadData()
        popDetailViewController()
