             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()
+            }
+        }
+    }
 }
        
        self.view.backgroundColor = UIColor(red: 200/255, green: 199/255, blue: 204/255, alpha: 1)
        self.navigationController?.navigationBar.translucent = false
        
        tableView.reloadData()
    }
    
    override func viewDidAppear(animated:Bool) {

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