     @IBOutlet weak var addGroupButton: UIButton!
     
     var groups : Array = [Group]()
-    
+    let subview: UIActivityIndicatorView = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.Gray)
     let reuseIdentifier = "groupCell"
     
     func loadAndDisplayGrubsFromServer(){

    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        loadAndDisplayGrubsFromServer()
        
        // Do any additional setup after loading the view, typically from a nib.

                    }
                }
                
                dispatch_async(dispatch_get_main_queue()) {
                    self.groupCollectionView.reloadData()
                    self.subview.stopAnimating()
                    self.subview.removeFromSuperview()
                }
            } else {
                print(error)
            }
