Code for populating the checkbox list