     _.extend @options, options
 
   setPrevStep:(prevStep) ->
-    @prevStep.unshift prevStep
+    @prevStep.unshift prevStep.constructor
     @prevStep
 
   getPrevStep: ->


    # 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()

    @setPrevBtn()
    @setNextBtn()
    @title.text @options.title

    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)

