 
     dialog = new Dialog
       prompt: prompt
-      path: rootView.project.relativize(oldPath)
+      path: project.relativize(oldPath)
       select: true
       iconClass: 'move'
       onConfirm: (newPath) =>
-        newPath = rootView.project.resolve(newPath)
+        newPath = project.resolve(newPath)
         directoryPath = fs.directory(newPath)
         try
           fs.makeTree(directoryPath) unless fs.exists(directoryPath)

      iconClass: 'add'
      onConfirm: (relativePath) =>
        endsWithDirectorySeparator = /\/$/.test(relativePath)
        path = rootView.project.resolve(relativePath)
        try
          if fs.exists(path)
            pathType = if fs.isFile(path) then "file" else "directory"

        @attach()

  attach: ->
    return unless project.getPath()
    rootView.horizontal.prepend(this)
    @focus()

