anchor.diff:  
           }, true);
   
  -        cozy.control.widget.toggle({
  +        var toggle = cozy.control.widget.toggle({
             region: 'top.toolbar.left',
             template: '<button class="button--sm" id="webgl" data-toggle="button" aria-label="3D Model">3D Model</button>',
             states: [{
  
positive.code: 
          // close panel function
          var close_panel = function() {
  
            var $panel = $('.special-panel');
            if ($panel.length) {
              $('.special-panel').hide();
  
negative.code:                 btn.state('open-webgl');
                }
              }],
          })
          toggle.addTo(reader);
          <% end %>
  
          // Database
  