 
     @pages.forEach (page) =>
       page.on 'UpdateStackTemplate', (scrollToBottom) =>
-        @stackPreview.show()
         @updateStackTemplate()
-        @emit 'ScrollTo', 'bottom'  if scrollToBottom
-
-      page.on 'HiliteTemplate', (type, keyword) =>
-        kd.utils.wait 737, => @hiliteTemplate type, keyword
 
     @on 'PageNavigationRequested', @bound 'handlePageNavigationRequested'
 
     @getStartedView.on 'NextPageRequested', =>
       @unsetClass 'get-started'
       @emit 'PageNavigationRequested', 'next'
-
-    @configurationView.once 'UpdateStackTemplate', => @emit 'ScrollTo', 'bottom'
-    @codeSetupView.once 'UpdateStackTemplate', => @emit 'ScrollTo', 'bottom'
 
     @getStartedView.emit 'NextPageRequested'  if @getOption 'skipOnboarding'
 

        @emit 'StackOnboardingCompleted', options


  createStackPreview: ->

    @stackPreview = new kd.CustomHTMLView
      cssClass : 'stack-preview hidden'
      partial  : '''
        <div class="header">STACK FILE PREVIEW</div>
      '''

    @stackPreview.addSubView @stackContent = new kd.CustomHTMLView
      cssClass: 'has-markdown'


  updateStackTemplate: ->

    selectedProvider  = @providerSelectionView.selected?.getOption 'provider'

    if selectedProvider is 'vagrant'
      @createStackPreviewFromYaml @getDefaultStackTemplate selectedProvider, 'yaml'
      @stackTemplate = @getDefaultStackTemplate selectedProvider, 'json'
      return



    if isSelected
      @nextButton.enable()
    else
      @nextButton.disable()


  handleInstanceTypeChanged: (type) ->
