 
     User.on 'change', =>
       # needs to be changed to read user's last course number
-      @resetCourse() #unless User.current?.preferences[Api.current.project]?.hasOwnProperty 'prev_course'
+      @resetCourse() #unless User.current?.preferences[zooniverse.Api.current.project]?.hasOwnProperty 'prev_course'
       if User.current?
         @prompt_el.toggleClass 'signed-in'
         @prompt_el.find('.course-button').show()

    @prompt_el.fadeOut(delay)

  getPref: ->
    @pref = User.current?.preferences[Api.current.project]['course']
    # console.log 'course preference: ', @pref # DEBUG CODE
    return @pref


  displayCourse: ->
    return if @curr > @num_courses
    unless User.current is null
      @prev = @curr
      @curr = +@curr + 1
      User.current.setPreference 'prev_course', @prev
      console.log 'SET PREV COURSE TO: ', @prev
      @loadContent()
      @course_el.fadeIn(@transitionTime)
      @subject_el.fadeOut(@transitionTime)
      @subject_el.toggleClass("hidden")
      @course_el.toggleClass("visible")

  hideCourse: ->
    @subject_el.fadeIn(@transitionTime)
