ert(`Error: ${xhr.status}, ${xhr.responseText}`, "danger")
                }
            };
            xhr.send();
        }

        // function to set the customized view config
        function set_admin_json_config(notifications = true) {
            const storedSettings = JSON.parse(localStorage.getItem('adminSettings'));
            document.getElementById("applySettingsSpinner").hidden = false
            const body = JSON.stringify({
                admin_json_config: JSON.stringify(storedSettings)