Adding pagination links to the top of the topics pages