)
                } else {
                    document.getElementById(spinner).hidden = true
                    add_alert(`Error: ${xhr.status}, ${xhr.responseText}`, "danger")
                }
            };
            xhr.send(body);
        }

        // function to add a logs raw data to the server and update the database
        function add_log() {
            document.getElementById("addLogDataSpinner").hidden = false
            const logData = document.getElementById("logData").value
          