       @ace.getSession().setValue file.content
       @ace.getSession().setMode mode
 
+      @getRunData = => {
+        type: "edit"
+        data: {
+          file: {
+            content: @ace.getSession().getValue()
+            path: file.path  
+          }
+          run: opts.run
+        }
+      }
+
+    # runs the current program
+    run: ->
+      data = @getRunData()
+      console.log data
 
     start: ->
       @$start_dialog.hide()

        <div class="ide-editor">
        </div>
        <div class="btn-group ide-control">
          <a class="btn btn-primary">Run</a>
        </div>
      </div>


      @$start_button = @$.find(".ide-start-dialog .btn")
      @$tutorial_container = @$.find(".ide-tutorial-container")
      @$term = @$.find(".ide-terminal")
      @$run = @$.find(".ide-run")
      @$run.click =>
        @run()

      @$container.layout
        west:
