code: function handleStateLoad(saved) {
              scope.options.unsavedChangeCount = 0;
              if (saved && saved.length) {
                scope.loadWidgets(saved);
              } else if (scope.defaultWidgets) {
                scope.loadWidgets(scope.defaultWidgets);
              } else {
                scope.clear(true);
              }
            }
docs: Success handler