fixing urls for next pages