editing prev and next links