Added the auto-fill functionality to checkboxes