preparing the page for content