closeConfirm(overlay, dialog) {
    if (!overlay) {
      overlay = document.getElementsByClassName('form-builder-overlay')[0]
    }
    overlay && remove(overlay)
    if (!dialog) {
      dialog = document.getElementsByClassName('form-builder-dialog')[0]
    }
    dialog && remove(dialog)
    document.removeEventListener('keydown', this.handleKeyDown, false)
    document.dispatchEvent(new Event('modalClosed', { bubbles: true, cancelable: false} ))
  }
Closes and open dialog

@param  {HTMLElement} [overlay] Existing overlay if there is one
@param  {HTMLElement} [dialog]  Existing dialog