adds previous link and next link helpers