adding previous and next link functionality to comfy_cms_page