 (e) => {
    frame.control.doCommand('restore');
  });
  document.querySelector('#btn2').addEventListener('click', (e) => {
    frame.control.doCommand('hide');
  });
  document.querySelector('#btn3').addEventListener('click', (e) => {
    frame.control.doCommand('dehide');
  });

  //You can automatically set the actions that are typically expected
  // when you press a button like maximize or minimize or something on title bar
  frame.setControl({
    maximizeButton: 'zoomButton',
    maximizeParam: {
  