Edited template to print out Next and Prev links.