       @siteActive()?.template ? {} # TODO: Needs .template?() if @siteNav is mapped
 
     @getActions = (node) =>
-      ntrapy.stopTree()
+      if ntrapy.poller? then ntrapy.stopTree() else ntrapy.pollTree()
       @getData "/roush/nodes/#{node.id()}/adventures", (data) ->
         node.actions (n for n in data.adventures)
 
-    @doAction = (data, parent) =>
-      console.log data, parent
+    @doAction = (object, action) =>
+      $.post "/roush/adventures/#{action.id}/execute",
+        JSON.stringify node: object.id()
+      , (data) ->
+        console.log "Success: ", data
 
     @ # Return ourself
 


  ntrapy.indexModel = new IndexModel()
  ko.applyBindings ntrapy.indexModel

    #)()

    ntrapy.pollTree = =>
      unless ntrapy.poller? then ntrapy.poller = setInterval @getMappedData, @config.interval, "/roush/nodes/1/tree", @wsTemp, mapping
      console.log "poller: ", ntrapy.poller

    ntrapy.stopTree = ->
      ntrapy.poller = clearInterval ntrapy.poller if ntrapy.poller?
      console.log "poller: ", ntrapy.poller

    @getData "/api/config", (data) =>
      # Store config
