added handle_phenotype_fmpage and add_phenotype_fmpage functions for the phenotypeform