        populateView()
     }
     
+    func tapDetected(_ gesture: UIGestureRecognizer){
+        populateView()
+    }
+    
     func populateView(){
         self.cardPicked = self.pickRandomCard(array: self.cards)
         self.mainAuthor.text = self.cardPicked.author

        
        let activityView = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.gray)
        activityView.frame = CGRect(x: 135, y: -10, width: 50, height: 50)
        activityView.color = UIColor.white
        activityView.startAnimating()
        
        let textLabel = UILabel(frame: CGRect(x: 0, y: 0, width: 200, height: 30))
        textLabel.textColor = UIColor.white
        textLabel.font = UIFont(name: textLabel.font.fontName, size: 13)
        textLabel.text = "Checking for Update..."
        

        callAlamo(url: cardsURL)
        self.mainAuthor.text = ""
        self.mainText.text = ""
        
        // This is for swipe gesture
        //let swipe = UISwipeGestureRecognizer(target: self, action: #selector(swipedDetected(_:)))
        //swipe.direction = UISwipeGestureRecognizerDirection.down
        
        // This is for tap gesture
        let tap = UITapGestureRecognizer(target: self, action: #selector(tapDetected(_:)))
        self.view.addGestureRecognizer(tap)
    }

    override func didReceiveMemoryWarning() {
