Updates the class names for the button groups component