people content code moved from switch statement to getPeople sub function