refine the page structure