use form object to generate checkbox