New result template and controller added.
Changed tree view to include template_name and form_flag fields.