         renderTable(data.records);
            enableButtons(true);
        })
        .catch(error => {
            showError(error);
            enableButtons(true);
        });
    }

    function enableButtons(enabled) {
        const btns = document.querySelectorAll('button.request');
        for (const btn of btns) {
            btn.disabled = !enabled;
        }
    }

    function renderTable(records) {
        // Build and Set HTML
        const html = [];
        for (const record of records) {
 