add pagination to activity