previous and next post along with added functionality.