make code more DRY; add link to my attendance for student and teacher