make the page function