make the checkbox work