         }
     }
     
+    func refreshUI() {
+        loadViewIfNeeded()
+        postTitleLabel.text = post?.author
+        postDetailTextLabel.text = post?.title
+        if let link = post?.thumbnailLink, link.isURL {
+            postImageView.downloadedFrom(link: link)
+        } else {
+            postImageView.image = UIImage.init(named: "externalLink")
+        }
+    }
+    
     override func viewDidLoad() {
         super.viewDidLoad()
         

            let fullScreenImageViewController = segue.destination as! FullScreenImageViewController
            fullScreenImageViewController.urlString = (post?.thumbnailLink)!
        }

    }
    
}

        self.performSegue(withIdentifier: "ShowFullScreenImageViewController", sender: nil)
    }
    
    @IBAction func didTapViewOriginalButton(_ sender: Any) {
        guard let link = post?.externalLink, link.isURL else { return }
        self.performSegue(withIdentifier: "ShowWebViewController", sender: nil)

    }
    
    //MARK: - Navigation
    
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
