 
   onProgress: () =>
     @onProgressCallback() if @onProgressCallback
+    
+  onCancel: () =>
 
   onSubmit: (id, fileName) =>
     obj = {id: id, name: fileName}

    _.bindAll(this, 'render')
    @documents = []
    @onComplete = @options.onComplete if @options.onComplete
    @onCancel = @options.onCancel if @options.onComplete
    @onProgressCallback = @options.onProgress if @options.onProgress
    @documents = @options.documents if @options.documents
    @allowedExtensions = @options.allowedExtensions if @options.allowedExtensions?

      if parseInt(document.id) == parseInt(id)
        document.remove = true
        @$("#file-uploaded-file-#{id}").remove()
        @onCancel()
    return false