Schedule table pivot

Changed logic in schedule controller to pivot table so that names are on the top and times on the side.