updtaed next/prev liks