allow callback for generation of page links