                     
                 }
             )
-            
-        }
-        
+        }
     }
 
     func searchBar(searchBar: UISearchBar, textDidChange searchText: String) {

                    alert.addAction(studyButton)

                    presentViewController(alert, animated: true, completion:nil)
                    
                }
            } catch let e {
                debugPrint(e)
            }
        }
        
    }
    
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {

        bar.delegate = self
        view.insertSubview(bar, aboveSubview: decksCollectionView)
        searchBar = bar
    }
   
    func cancelSearchReposition(searchBar: UISearchBar, animated: Bool) {
