     }
 }
 
-class CourseAnnouncementsViewController: UIViewController {
+class CourseAnnouncementsViewController: UIViewController, UIWebViewDelegate {
     let environment: CourseAnnouncementsViewControllerEnvironment
     let course: OEXCourse
     var announcements: [OEXAnnouncement]

        let baseURL = self.environment.config?.apiHostURL().flatMap { NSURL(string: $0 ) }
        self.webView?.loadHTMLString(displayHTML, baseURL: baseURL)
    }
}

            if let owner = self {
                owner.environment.pushSettingsManager.setPushDisabled(!owner.notificationSwitch.on, forCourseID: owner.course.course_id)
            }}, forEvents: UIControlEvents.ValueChanged)
        
        self.webView.delegate = self
    }
    
    override func viewWillAppear(animated: Bool) {
