Moving header of teacher studies in teacherdetails above the foreach so it shows up only once in the list.