Updating toggle buttons