     @actionListController.instantiateListItems actionList
     @actionListController.hideLazyLoader()
 
+  updateActionOrders:->
+    for item, index in @actionListController.itemsOrdered
+      data = item.getData()
+      KD.remote.api.JDomain.updateBehavior
+        domainName : data.domainName
+        ruleName   : data.ruleName
+        behaviorInfo :
+          enabled : "yes"
+          action  : data.action
+          index   : "#{index}"
+      , (err, response)=>
+        return console.log err if err?
+
+
 
 class FirewallRuleListItemView extends KDListItemView
 


    @actionListView.addSubView @actionListScrollView
    @actionListView.addSubView new KDButtonView
      title : "Update Action Order" 

    @actionListScrollView.addSubView @actionListController.getView()


        return new KDNotificationView 
          title : "An error occured while performing your action. Please try again."
          type  : "top"
      delegate.emit "newRuleCreated", {domainName:domainName, ruleName:response.Name, match:response.Match}


  viewAppended:->
