pagination and url correction