add working view attendances functionality