       @resetView()
     @renameView.input.setFocus()
 
-  updateProgressView: (percent=0, determinate=yes)->
-    @progress.setOption "determinate", determinate
-    @progress.updateBar percent, "%", ""
+  showProgressView: (percent=0, determinate=yes)->
+
+    unless @progressView
+      @addSubView @progressView = new KDProgressBarView
+
+    @progressView.setOption "determinate", determinate
+    @progressView.updateBar percent, "%", ""
     if 0 <= percent < 100
-    then @setClass   "progress"
-    else @utils.wait 1000, => @unsetClass "progress"
+    then @setClass "progress"
+    else @utils.wait 1000, =>
+      @resetView()
 
   pistachio:->
 
     """
     {{> @childView}}
-    {{> @progress}}
     """

      fileInfo = data.getLocalFileInfo()
      if fileInfo.lastUploadedChunk
        {lastUploadedChunk, totalChunks} = fileInfo
        if lastUploadedChunk is totalChunks
          data.removeLocalFileInfo()
          @updateProgressView 100
        else
          @updateProgressView 100 * lastUploadedChunk / totalChunks

  mouseDown:-> yes


    @isLoading        = no
    @beingDeleted     = no
    @beingEdited      = no
    @beingProgress    = no

    childConstructor = switch data.type
      when "vm"         then NVMItemView
