Created an if statement in the prepareForSegue function that passes both student and teacher arrays based on which section is selected.