add relationship between template and story, begin dynamic form display and gsubbing