more robust updating of buttons from saved values