updated with url and pagination