some work on checkbox buttons, needs some improvements