Added checkboxes and its functionality.