fixed attendance as page is changed