refactor DiscussionThread template.