     private lazy var webController : WebContentController = {
         let controller = WKWebViewContentController()
         controller.webView.navigationDelegate = self
+        controller.webView.uiDelegate = self
         return controller
     
     }()

            completionHandler(.performDefaultHandling, nil)
        }
    }
}


// Allows access to course content that requires authentication.
// Forwarding our oauth token to the server so we can get a web based cookie
public class AuthenticatedWebViewController: UIViewController, WKUIDelegate, WKNavigationDelegate {
    
    fileprivate enum State {
        case CreatingSession
