function replace_with_spinner(element) {
    element.innerHTML = "<div class=\"spinner-border spinner-border-sm text-dark\" role=\"status\">\
                                   <span class=\"visually-hidden\">Loading...</span>\
                               </div>"

}
