 
     KD.remote.api.JDomain.one {domainName:data.domainName}, (err, domain)->
       return console.log err if err
+
       params = 
-        domain    : domain.getId()
+        domainName: domain.domain
         action    : behavior
         match     : data.match
+      
       domain.createProxyRule params, (err, rule)->
         return console.log err if err
         delegate.emit "newRuleCreated", {domainName:data.domainName, ruleName:data.ruleName, action:behavior}

  pistachio:->
    """
    <div class="fw-li-view #{@getData().action}">
      <div class="fl">{{ #(ruleName) }}</div>
      <div class="fr buttons">
        {{> @actionButton }}
        {{> @deleteButton }}

      @ruleListController.addItem item

  updateActionOrders:(domain)->
    newRulesList = (item.getData() for item in @ruleListController.itemsOrdered)
    domain.updateRuleOrders newRulesList, (err, response)->
      return console.log err if err?


class FirewallFilterListItemView extends KDListItemView
