Update variabletxt on change