move common code for student's page to courseStudentLayout, add pager utils