     @setState({})
 
   goBack: ->
+    {courseId} = @context.router.getCurrentParams()
+
     historyInfo = TransitionStore.getPrevious(@context.router)
     url = historyInfo.path or 'dashboard'
     @context.router.transitionTo(url)

    StudentIdActions.validate(courseId, newStudentId)

    if StudentIdStore.getErrors(courseId).length
      @setState({})
      return

    StudentIdStore.once('student-id-saved', @saved)
    StudentIdStore.once('student-id-error', @update)
    StudentIdActions.save(courseId, {

    </BS.Panel>

  render: ->
    if (@state?.success) then return @renderSuccess()

    {courseId} = @context.router.getCurrentParams()
    studentId = @state?.curId or CourseStore.getStudentId(courseId)

    <BS.Panel bsStyle='primary' className="change-id-panel">
      <BS.Row>
