  const logName = document.getElementById("logName").value
            document.getElementById("logData").value = ""
            document.getElementById("logName").value = ""

            const body = JSON.stringify({
                log_data: logData,
                log_name: logName,
            });
            send_request("POST", "/add-log", body, "addLogDataSpinner")
        }

        // function to remove outputs from the database
        function remove_log() {
            document.getElementById("