gui: implement checkbox widget and make static callback functions private