Changes for attendance components and search

Please review the changes for Attendance search. You can merge if you want.