create header, footer, main page content and adding data to main page.