Akshay/Pooja: WIP added aggregation for head teachers.
Akshay/Pooja : making the time filter consistant on detail attd