genereate attendances controller