     
     let atomCellIdentifier = "atomCell";
     
+    var activityView: UIActivityIndicatorView?
+    
     var video: Video?
     
     var rootAtom: Atom?

        
        self.title = "Atoms"
        
        parserBridge = ParserBridge()
        if let videoURL = video?.videoURL {
            rootAtom = parserBridge!.parseFile(videoURL.path)
            displayAtom( rootAtom!, depth: 0 );
        }
        
        tableView.layoutMargins = UIEdgeInsetsZero

            navController.pushViewController(atomController, animated: true)
        }
    }
    
    func showActivityIndicator() {
        dispatch_async(dispatch_get_main_queue()) {
            self.activityView = UIActivityIndicatorView(activityIndicatorStyle: .Gray)
            self.activityView!.backgroundColor = UIColor.grayColor().colorWithAlphaComponent(0.5)
            self.activityView!.center = self.view.center
            self.activityView!.frame = self.view.frame
            
            self.view.addSubview(self.activityView!)
            self.activityView!.startAnimating()
        }
    }
    
    func removeActivityIndicator() {
        dispatch_async(dispatch_get_main_queue()) {
            if let activityView = self.activityView {
                activityView.stopAnimating()
                activityView.removeFromSuperview()
            }
        }
    }
}