update next & prev link