     return @pref
 
   resetCourse: ->
-    console.log 'resetting course'
     unless User.current is null
-      console.log 'resetting course'
       User.current.setPreference 'course', 'yes'
       User.current.setPreference 'prev_course', 0
       @prev = User.current?.preferences[Api.current.project]['prev_course']

      text   = "This concludes the mini-course series. Thanks for tuning in!"
      figure = ""
    else
      console.log 'CURR: ', @prev
      title  = @content[@curr].material.title
      text   = @content[@curr].material.text
      figure = @content[@curr].material.figure

    @rate = rate

  onClickCourseYes: ->
    unless User.current is null
      User.current.setPreference 'course', 'yes'
      @hidePrompt()
      @displayCourse()

  onClickCourseNo: ->
    unless User.current is null
      User.current.setPreference 'course', 'no'
      @hidePrompt()

  onClickCourseNever: ->
    unless User.current is null
      User.current.setPreference 'course', 'never' 
      @hidePrompt()

  displayCourse: ->
    unless User.current is null
      @prev = @curr
      @curr = +@curr + 1
      User.current.setPreference 'prev_course', @prev
