Implement the checkbox control