Topo2: Adding peer region node to the topology

Change-Id: I846d2f1ca27faa4602c772aba006f5be55da6106
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Model.js b/web/gui/src/main/webapp/app/view/topo2/topo2Model.js
index c8430fb..31ec0f6 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2Model.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2Model.js
@@ -22,13 +22,14 @@
 (function () {
     'use strict';
 
-    function Model(attributes) {
+    function Model(attributes, collection) {
 
         var attrs = attributes || {};
         this.attributes = {};
 
         attrs = angular.extend({}, attrs);
         this.set(attrs, { silent: true });
+        this.collection = collection;
         this.initialize.apply(this, arguments);
     }
 
@@ -82,11 +83,11 @@
 
                 val = attribute;
 
-                if (!angular.equals(current[index], val)) {
+                if (!_.isEqual(current[index], val)) {
                     changes.push(index);
                 }
 
-                if (angular.equals(previous[index], val)) {
+                if (!_.isEqual(previous[index], val)) {
                     delete changed[index];
                 } else {
                     changed[index] = val;