added 'loop-back' facility for 'next page'.