attendances controller