 
     @ruleListScrollView.addSubView @ruleListController.getView()
 
-    @on "newFilterCreated", (item) => 
-      @filterListController.addItem item
+    @on "newFilterCreated", (item) => @filterListController.addItem item
 
     # this event is on rule list controller because 
-    # both allow & deny buttons live on FirewallfilterListItemView.
-    @ruleListController.getListView().on "newRuleCreated", (item) => 
+    # both allow & deny buttons live on FirewallFilterListItemView.
+    @filterListController.getListView().on "newRuleCreated", (item) => 
       @ruleListController.addItem item
 
   updateActionOrders:(domain)->

    delegate = @getDelegate()
    newAction = @actionButton.getOptions().title.toLowerCase()
    futureAction = if newAction is 'deny' then 'allow' else 'deny'

    console.log data

    KD.remote.api.JDomain.one {domainName:data.domainName}, (err, domain)=>
      domain.updateProxyRule
        ruleName   : data.ruleName
        behaviorInfo :
          enabled : "yes"
          action  : newAction
          index   : "0"
      , (err, response)=>
        return console.log err if err?
        @$().find("div.fw-li-view").removeClass(futureAction).addClass(newAction)
        @actionButton.setTitle futureAction


  deleteProxyRule:->
    data = @getData()

    KD.remote.api.JDomain.one {domainName:data.domainName}, (err, domain)=>
      domain.deleteRuleBehavior {ruleName:data.ruleName}, (err, result)=>
        return console.log err if err?
        new KDNotificationView {title:"Action has been deleted from your firewall.", type:"top"}
        @destroy()



      @filterListController.instantiateListItems filters

    KD.remote.api.JProxyRestriction.fetchRestrictionByDomain domain.domain, (err, restriction)=>
      if restriction
        for rule in restriction.ruleList
          rule.domainName = domain.domain
        @ruleListController.instantiateListItems restriction.ruleList

    @fwRuleFormView = new FirewallFilterFormView delegate:this, {domain}
