add record attendance functionality