 
 extension SectionEditorViewController: SectionEditorInputViewsControllerDelegate {
     func sectionEditorInputViewsControllerDidTapMediaInsert(_ sectionEditorInputViewsController: SectionEditorInputViewsController) {
-        let mediaWizardController = MediaWizardController()
-        mediaWizardController.delegate = self
-        mediaWizardController.prepare(with: theme)
+        mediaWizardController = MediaWizardController()
+        mediaWizardController?.delegate = self
+        mediaWizardController?.prepare(with: theme)
     }
 }
 

    }

    func mediaWizardController(_ mediaWizardController: MediaWizardController, didTapCloseButton button: UIBarButtonItem) {
        dismiss(animated: true)
    }
}

    private var messagingController: SectionEditorWebViewMessagingController!
    private var menuItemsController: SectionEditorMenuItemsController!
    private var navigationItemController: SectionEditorNavigationItemController!

    private var mediaWizardController: MediaWizardController?
    
    lazy var readingThemesControlsViewController: ReadingThemesControlsViewController = {
        return ReadingThemesControlsViewController.init(nibName: ReadingThemesControlsViewController.nibName, bundle: nil)
