     # if @type isnt 'template'
     @parentView.setNextBtn('finish')
     @parentView.disableNext()
-    @appPath.basePath = desc.newProjectDefaultPath
-    @appPath.setText @appPath.basePath
+    @appPath.html desc.newProjectDefaultPath
 
   openFolder: ->
     atom.pickFolder (paths) =>
       if paths?
         console.log paths[0]
-        path = pathM.join paths[0],@appId.getText()
-        console.log  path
-        @appPath.basePath = path
-        @appPath.setText @appPath.basePath
+        # path = pathM.join paths[0],@appId.getText()
+        # console.log  path
+        @appPath.html paths[0]
 
   getElement: ->
     @element
 
   getProjectInfo: ->
-    path = @appPath.getText().trim()
+    appId = @appId.getText().trim()
+    appPath = @appPath.html().trim()
+    path = pathM.join appPath,appId
     dir = new Directory(path)
     path = pathM.join desc.newProjectDefaultPath,dir.getBaseName() if dir.getParent().isRoot() is yes
     projectInfo =

  checkInput: ->
    flag1 = @appId.getText().trim() isnt ""
    flag2 = @appName.getText().trim() isnt ""
    flag3 = @appPath.getText().trim() isnt ""
    flag4 = @errorMsg.hasClass('hide')
    flag5 = @errorMsg2.hasClass('hide')


    else
      @parentView.disableNext()

  checkProjectName: ->
    # currPath = @appPath.basePath
    str = @appId.getText().trim()
    console.log Util.checkProjectName str
    if Util.checkProjectName str
      @errorMsg2.addClass('hide')
    else
      @errorMsg2.removeClass('hide')
    # @appPath.setText pathM.join currPath,str if currPath isnt ""
    @checkPath()
    # @checkInput()

  checkPath: ->
    appId = @appId.getText().trim()
    appPath = @appPath.html().trim()
    path = pathM.join appPath,appId
    if path isnt ""
      dir = new Directory(path);
      dir.exists()
