_resetUIState() {
    if (this._topbar) {
      this._topbar.resetUIState();
    }
  }
Resets the state of page before capturing the page for export.
When the user opens the exported HTML page, certain UI elements should
be in their closed state (not opened) and the templates should be unstamped.