     @setPrevBtn()
     @setNextBtn()
     @title.text @options.title
-    @contentView = @options.subview
+
+    if typeof @options.subview is 'function'
+      @contentView = new @options.subview()
+    else if typeof @options.subview is 'object'
+      @contentView = new @options.subview.constructor()
+    else
+      @contentView = {};
+
     @contentView.parentView = @
     @contentBox.append(@contentView)
 


    # console.log @modalPanel,atom.workspace.getModalPanels(),@,atom.workspace.getModalPanels()[0].item is @
    # console.dir @element.parentElement
    view = new @options.begining?()
    @mergeOptions subview:view if view?
    @findModalPanel()
    # console.log @modalPanel,@modalPanel?.isVisible()

    _.extend @options, options

  setPrevStep:(prevStep) ->
    @prevStep.unshift prevStep.constructor
    @prevStep

  getPrevStep: ->
