loop for the url to request pages