           @coe.after(response.html).remove()
           @allow_reset="False"
           @reinitialize(@element)
+          @has_been_reset = true
           @rebind()
           @reset_button.hide()
         else

      if response.success
        @status_container.after(response.html).remove()
        @status_container= $(@status_container_sel)

  get_last_response: () =>
    data = {}
    $.postWithPrefix "#{@ajax_url}/get_last_response", data, (response) =>
      if response.success
        console.log(response.response)

  message_post: (event)=>
    external_grader_message=$(event.target).parent().parent().parent()

  save_answer: (event) =>
    event.preventDefault()
    @submit_button.hide()
    @answer_area.attr("disabled", true)
    max_filesize = 2*1000*1000 #2MB
    pre_can_upload_files = @can_upload_files
    if @child_state == 'initial'
