redoing posts next/prev logic, removing queries