changed JtoggleButton to JCheckButton