     @content = $.parseJSON jsonData
     
   setRate: (rate) ->
-    console.log 'setRate()'
     @rate = rate
 
   onClickCourseYes: ->
     console.log "onClickCourseYes()"
-    User.current.setPreference 'course', 'yes', true, @displayCourse()
+    unless User.current is null
+      User.current.setPreference 'course', 'yes', false, @displayCourse()
     @hidePrompt()
 
   onClickCourseNo: ->
     console.log "onClickCourseNo()"
-    User.current.setPreference 'course', 'no', true
+    unless User.current is null
+      User.current.setPreference 'course', 'no', false
     @hidePrompt()
 
   onClickCourseNever: ->
     console.log "onClickCourseNever()"
-    User.current.setPreference 'course', 'never', true
+    unless User.current is null
+      User.current.setPreference 'course', 'never', false
     @hidePrompt()
 
   displayCourse: ->
     console.log 'displayCourse()'
+    console.log 'CURRENT COURSE: ', @curr
+    @prev = @curr
+    @curr = +@curr + 1
+    unless User.current is null
+      User.current.setPreference 'prev_course', @curr, false
     @course_el.fadeIn()
 
   hideCourse: ->

class MiniCourse

  constructor: ->
    @prompt_el = $(classifier.el).find("#course-prompt")
    @course_el = $(classifier.el).find("#course-container")

    @count = 0 # fake classification counter


    # fake it for not
    # @count = User.current?.classification_count 

  resetCourse: ->
    console.log 'resetting course'
    unless User.current is null
      User.current?.setPreference 'prev_course', 0, false
      @prev   = +prev.current?.preferences['prev_course']
      @curr = +@prev + 1


module.exports = MiniCourse