Added next/previous post functionality