add attendance feature logic is completed