added form config for template determination