       Toast.message(annotation.messages)
     ).fail( (xhr) ->
       Toast.error("Error. Please try again.")
-    ).always( ->
-      toggleIcon()
+    ).always( =>
+      @toggleIcon()
     )
 
 

    ).fail( (xhr) ->
      Toast.message(xhr.responseJSON.messages)
    ).always( ->
      toggleIcon()
    )


      @ui.uploadAndExploreForm.submit()


  toggleIcon : ->

    [@ui.formSpinnerIcon, @ui.formUploadIcon].forEach((ea) -> ea.toggleClass("hide"))


  uploadFiles : (event) ->

    event.preventDefault()

    @toggleIcon()

    form = @ui.uploadAndExploreForm

