improve behavior of selection buttons by implementing them as RadioGroups.
also, changed marking of button states.