       type  : filterType
       match : filterMatch
     , (err, filter)->
+      console.log err, filter
       unless err 
-        delegate.emit "newFilterCreated", {filterName, filterMatch}
+        delegate.emit "newFilterCreated", {name:filterName, match:filterMatch}
 
       return new KDNotificationView 
         title : "An error occured while performing your action. Please try again."

    # 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

          title : notifyMsg
          type  : "top"

      for filter in filters
        filter.domainName = domain.domain

      @filterListController.instantiateListItems filters
      @filterListController.showLazyLoader()


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