correctly track which variable buttons are currently selected