updating toggle buttons