update attendance template