Added filter functionality to attendance