axios
            .put(`${ROOT_URL + BASE_URL}`, data, header)
            .then(function(response) {
                // If successfully updated on the backend, update on frontend as well.
                if (response.data.success) {