   'course_code': require './select-course'
   'period':      require './select-dates'
   'details':     require './course-details'
+  'copy_ql':     require './copy-ql'
   'build':       require './build-course'
 }
 
 STAGE_KEYS = keys(STAGES)
+
+componentFor = (index) ->
+  STAGES[ STAGE_KEYS[ index ] ]
 
 NewCourse = React.createClass
 

  mixins: [BindStore]
  bindStore: NewCourseStore

  onContinue: ->
    @setState({currentStage: @state.currentStage + 1})

  onBack: ->
    @setState({currentStage: @state.currentStage - 1})

  Footer: ->
    <div className="controls">

    @context.router.transitionTo('/dashboard')

  render: ->
    Component = componentFor(@state.currentStage)
    <div className="new-course">
      <BS.Panel
        header={Component.title}
