      - parameter sender: AnyObject
      */
     @IBAction func popVC(sender: AnyObject) {
+        SVProgressHUD.dismiss()
         self.navigationController?.popViewControllerAnimated(true)
     }
 

    func handleFeedViewModelNotifications(feedViewModelNotification: FeedViewModelNotification) {

        if feedViewModelNotification == FeedViewModelNotification.ReloadCollectionView {
            reloadDataInCollectionView()
        } else if feedViewModelNotification == FeedViewModelNotification.UploadingPhotoStarted {
            collectionView.reloadData()
            scrollCollectionViewToTop()
            tryToStartLoadingAnimation()
        } else if feedViewModelNotification == FeedViewModelNotification.NoSearchResults {
            noResultsLabel.hidden = false
        } else if feedViewModelNotification == FeedViewModelNotification.GetImagesServerFailure {
            reloadDataInCollectionView()


    }

    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        if searchQuery != nil && self.isMovingToParentViewController() && collectionView.numberOfItemsInSection(1) < 1 {
            SVProgressHUD.show()
        }
    }

    /**
     Method called as a callback from the OS when the app receives a memeory warning from the OS
     */
