     
     // MARK: - Notifications
     
-    func VPNDidCreate(notification: NSNotification) {
-        vpns = VPNDataManager.sharedManager.allVPN()
-        tableView.reloadData()
-        popDetailViewController()
-    }
-    
-    func VPNDidUpdate(notification: NSNotification) {
-        vpns = VPNDataManager.sharedManager.allVPN()
-        tableView.reloadData()
-        
-        // NOTE: Update activated VPN dict for widget
-        for vpn in vpns {
-            if vpn.ID == activatedVPNID {
-                VPNManager.sharedManager().activatedVPNID = vpn.ID
-                break
-            }
-        }
-        popDetailViewController()
-    }
-    
-    func VPNDidRemove(notification: NSNotification) {
-        vpns = VPNDataManager.sharedManager.allVPN()
-        tableView.reloadData()
-        popDetailViewController()
-    }
-    
-    func VPNDidDuplicate(notification: NSNotification) {
+    func reloadDataAndPopDetail(notifiation: NSNotification) {
         vpns = VPNDataManager.sharedManager.allVPN()
         tableView.reloadData()
         popDetailViewController()

    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        
        if let activatedVPN = VPNDataManager.sharedManager.activatedVPN {
            activatedVPNID = activatedVPN.ID
        }
        
        tableView.reloadData()
        
        let ping = SimplePing(hostName: "baidu.com")
    }

    // MARK: - Table view data source

    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("reloadDataAndPopDetail:"), name: kLTVPNDidCreate, object: nil)
        NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("reloadDataAndPopDetail:"), name: kLTVPNDidUpdate, object: nil)
        NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("reloadDataAndPopDetail:"), name: kLTVPNDidRemove, object: nil)
        NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("reloadDataAndPopDetail:"), 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)
