working on the button groups