changed toggle function to remove fields not in selected map