     e.preventDefault()
     template.$(e.currentTarget).find(':submit').text('Creating...').prop('disabled', true)
     form = 
-      name: e.target.name.value
-      label: e.target.label.value
-      description: e.target.description.value
-    if e.target.name.value.length > 0 and e.target.label.value.length > 0
+      name: "#{e.target.name.value}"
+      label: "#{e.target.label.value}"
+      description: "#{e.target.description.value}"
+    if form.name.length > 0 and form.label.length > 0
       Meteor.call 'createNode', form, (error, node) ->
         if error
           throw new Meteor.Error error
         else
+          console.log node
           template.nodesDS.add node
           template._nodes[node.id] = node
           template.$(e.currentTarget).find(':submit').text('Create Node').prop('disabled', false)

Template.main.events
  'click button#deleteNode': (e, template) ->
    e.preventDefault()
    if template.nodeFrom.get()
      e.currentTarget.textContent = 'Removing...'
      e.currentTarget.disabled = true
      id = template.nodeFrom.get().id
      Meteor.call 'deleteNode', id, (error) ->
        if error
          throw new Meteor.Error error
        else
          template.nodesDS.remove id
          delete template._nodes[id]
          template.resetNodes()
          template.resetNodes('edge')
    false

            if @_edges?[edge.id]
              @edgesDS.remove edge.id
              delete @_edges[node.id]
              ###
              If user currently inspecting / editing relationship, which just was removed
              We close inspector
              ###
              @relationship.set null if @relationship.get() and @relationship.get().id is edge.id
          else
            if @_edges?[edge.id]
              unless EJSON.equals edge, @_edges[edge.id]
                @edgesDS.update edge 
                ###
                If user currently inspecting / editing relationship, which just was updated
                We update inspector
                ###
                @relationship.set edge if @relationship.get().id is edge.id
            else
              @edgesDS.add [edge]
            @_edges[edge.id] = edge
