     private var searchBar: UISearchBar?
 
     var isSearchBarVisible = false
+    var isSearching = false
 
     lazy private var statusBarHeight: CGFloat = {
         return UIApplication.sharedApplication().statusBarFrame.height

                if let flashcards = try dataManager?.flashcards(forDeckWithId: deck.id) {

					if let bar = searchBar {
                        hideSearchBar(-topItemOffset)
        			}
                   
                    let alert = UIAlertController(title: "Test or Learn?", message: "Choose the mode which you would like to start", preferredStyle: .Alert)

        equalSizeAndSpacing(numberOfCellsInRow: Utils.DeckViewLayout.DecksInRowIPhoneVer, spacing: spacing, collectionFlowLayout: flow)

        decksCollectionView.backgroundColor = UIColor.whiteColor()
        
        let swipeGestureRecognizer = UISwipeGestureRecognizer(target: self, action: Selector("hideKeyboard"))
        swipeGestureRecognizer.direction = [.Down,.Up]
        decksCollectionView.addGestureRecognizer(swipeGestureRecognizer)
        swipeGestureRecognizer.delegate = self
        
    }
    
