check for next/prev pages