further improvements to the create checkbox function