moved a few dom generation functions to form-generator