for advanced template, show 2nd pedigree option.
Fixed also the 2nd pedigree processing logic to handle advanced template

Issue: GCP-9515

Reviewer: Mae (post-commit)