anchor.diff:                  }
               }
   
  +            // Keeps the list of pills updated
  +            function updateDetailPills() {
  +                var pathToLoad = currentPathId;
  +
  +                // first get the data of all of the existing pills
  +                // this will be used to mark which pills are kept/deleted
  +                var existingPills = [];
  +                $(".nav-pills>li").each( function( index, element ) {
  +                    // use $(this)
  +                    var id = $(this).attr("id");
  +                    existingPills[existingPills.length] = id;
  +                });
  +
  +                // look through the overrides list to see which are enabled/active
  +                var ids = jQuery("#packages").jqGrid('getDataIDs');
  +                for (var i = 0; i < ids.length; i++) {
  +                    var rowdata = $("#packages").getRowData(ids[i]);
  +
  +                    // check to see if response or request is enabled
  +                    // or if this is the currently selected row
  +                    if ($("#request_enabled_" + rowdata.pathId).prop("checked") === true ||
  +                        $("#response_enabled_" + rowdata.pathId).prop("checked") === true ||
  +                        rowdata.pathId === currentPathId) {
  +
  +                        if (pathToLoad === -1) {
  +                            pathToLoad = rowdata.pathId;
  +                        }
  +
  +                        if ($.inArray(rowdata.pathId, existingPills) !== -1) {
  +                            // mark as seen in the existingpills array
  +                            // since it exists we don't need to add it
  +                            existingPills[$.inArray(rowdata.pathId, existingPills)] = -1;
  +                        } else {
  +                            // add it to the <ul> pill nav
  +                            $('<li id="' + rowdata.pathId + '"><a href="#tab'+rowdata.pathId+'" data-toggle="tab">' + rowdata.pathName + '</a></li>').appendTo('#nav');
  +                        }
  +                    }
  +                }
  +
  +                // remove tabs that should no longer exist
  +                // at this poing the existingPills list is just the pills that need to be removed
  +                for (var x = 0; x < existingPills.length; x++) {
  +                    if (existingPills[x] !== -1) {
  +                        //console.log(existingPills[x]);
  +                        $("#" + existingPills[x]).remove();
  +
  +                        // reset pathToLoad if it is equal to the removed path
  +                        if (pathToLoad === existingPills[x]) {
  +                            pathToLoad = -1;
  +                        }
  +                    }
  +                }
  +
  +                // make all pills non-active
  +                $(".nav-pills>li").removeClass("active")
  +
  +                // make the currently selected pill active
  +                $("#" + pathToLoad).addClass("active");
  +
  +                // register click events on all of the nav pills to load the appropriate detail data
  +                $('.nav-pills > li > a').click( function() {
  +                    loadPath($(this).parent().attr("id"));
  +                });
  +
  +                // load the currently selected path data
  +                loadPath(pathToLoad);
  +            }
  +
               // common function for grid reload
               function reloadGrid(gridId) {
                   jQuery(gridId).setGridParam({datatype:'json', page:1}).trigger("reloadGrid");
  
positive.code:                     data: 'requestEnabled=' + enabled + '&clientUUID=' + clientUUID,
                      error: function() {
                          alert("Could not properly set value");
                      }
                  });
              }
  
negative.code:                     data: 'responseEnabled=' + enabled + '&clientUUID=' + clientUUID,
                      error: function() {
                          alert("Could not properly set value");
                      },
                      success: function() {
                          updateDetailPills();
                      }
                  });
              }
  