add formtype and template association method