make the page urls work for multiple pages