changed old post to previous post in the pagination