Checkbox functionality added