getting attendance to the front end