 textStatus, errorThrown) {
                        console.log(textStatus, errorThrown)
                    }
                });
            }

            function put(isCsrfTokenSet) {
                const headers = isCsrfTokenSet ? {
                    "X-XSRF-TOKEN": getCsrfToken()
                } : {};

                $.ajax({
                    url: "/ui/put",
                    headers,
                    type: "PUT",
                    async: false,
                    success: function (