     # both allow & deny buttons live on FirewallfilterListItemView.
     @ruleListController.getListView().on "newRuleCreated", (item) => 
       @ruleListController.addItem item
-
-  iniateControllerListItems:(domain, response)->
-    ###
-    ruleKeys         = Object.keys(response.rules)
-    actionKeys       = Object.keys(response.filterList)
-    responseRules    = response.rules
-    responsefilterList = response.filterList
-    filterList         = []
-    ruleList       = []
-
-    for key in ruleKeys
-      filterList.push 
-        domainName : domain.domain
-        ruleName   : responseRules[key].Name
-        match      : responseRules[key].Match
-        type       : responseRules[key].Type
-    
-    for key in actionKeys
-      ruleList.push
-        domainName : domain.domain
-        ruleName   : responsefilterList[key].RuleName
-        action     : responsefilterList[key].Action
-    ###
-
-
-
-
-    @filterListController.instantiateListItems filterList
-    @filterListController.hideLazyLoader()
-    @ruleListController.instantiateListItems ruleList
-    @ruleListController.hideLazyLoader()
 
   updateActionOrders:(domain)->
     for item, index in @ruleListController.itemsOrdered

      type  : filterType
      match : filterMatch
    , (err, filter)->
      unless err 
        delegate.emit "newFilterCreated", {filterName, filterMatch}

      return new KDNotificationView 
        title : "An error occured while performing your action. Please try again."


    @allowButton = new KDButtonView
      title    : "Allow"
      callback : => @createRule 'allow'

    @denyButton = new KDButtonView
      title    : "Deny"
      callback : => @createRule 'deny'

    @deleteButton = new KDButtonView
      title       : "Delete"
      viewOptions :
        cssClass  : 'delete-button'
      callback    : => @deleteFilter()

  viewAppended:->
    @unsetClass 'kdview'
    @setTemplate @pistachio()
    @template.update()

  createRule:(behavior)->
    data = @getData()
    delegate = @getDelegate()

    KD.remote.api.JDomain.one {domainName:data.domainName}, (err, domain)->
      return console.log err if err
      params = 
        domain    : domain.getId()
        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}

  deleteFilter:->
    data = @getData()
    KD.remote.api.JProxyFilter.remove {_id:data.getId()}, (err)=>
      unless err then @destroy()

  pistachio:->
    """
