     @selectedRootPath.text '.'
 
     if atom.project.path
-      fs.exists path.resolve(atom.project.path, 'index.html'), (exists)=>
-        @selectedIndexFile.text 'index.html' if exists
+
+      fs.exists path.resolve(atom.project.path, 'index.html'), (exists1)=>
+        fs.exists path.resolve(atom.project.path, 'main', 'index.html'), (exists2)=>
+          @selectedIndexFile.text 'index.html' if exists1
+          @selectedIndexFile.text 'main/index.html' if exists2
 
     @httpPort.setText "3000"
 

          @subview 'd', new EditorView(mini: true)
        @div class: 'col-xs-1', =>
          @span class: 'glyphicon glyphicon-minus'
    @find('.proxy-list').append item

  removeProxy: ->
    console.log "remove"

      #note: use val method for input tag
      @selectedIndexFile.text path.relative(atom.project.path, destPath[0]) if destPath

  onClickRun: ->
    rootPath = path.resolve(atom.project.path, @selectedRootPath.text())
    destPath = path.resolve(atom.project.path, @selectedIndexFile.text())
    httpPort = parseInt @httpPort.getText()
    pushState = @find('#usingPushState').is(":checked")

    #TODO: validation

