UGLY (but working) version of section attendance view