updated next and previous links