use boxes for the configration instead of relying on the button that's pressed