pagination works now! and so does marking resutls