correct prev/next links