   addElement: (ef, x, y) ->
     e = new ef.constructor(@baseRect, x, y, 50)
     e.props.name = @ve.namemanager.getName(e.constructor.name.toLowerCase())
+    e.id.name = e.props.name
     e.props.design = dsg
     @elements.push(e)
     @ve.render()

      updateLink(l) for l in x.links

    true


class EBoxSelectHandler

    setEndpointData: ->
      @props.endpoints[0].name = @endpoint[0].props.name
      @props.endpoints[0].sys = @endpoint[0].props.sys
      @props.endpoints[1].name = @endpoint[1].props.name
      @props.endpoints[1].sys = @endpoint[1].props.sys

    ifInternetToWanLink:  ->
      @applyWanProps() if @isInternet()
