Ok, I think I really got it…
I created a swap data function:
function swap_data(data) {
mutable state_data = data;
}
Then I invoke this function alongside the respective button, like this:
load_original_data,
swap_data(original_data),
mutable state_data
…and now it works!