connectURLButton = (buttonId, url, statusMessage) => {
    document.getElementById(buttonId).addEventListener('click', async () => {
      ui.getQueryElement().value = url;
      resetOutputMessages();
      ui.updateStatus(statusMessage);
    }, false);
  }
Sets up handlers for the user affordences, including all buttons.