added prev and next link urls for pagination