add header and footer to index.php, use more semantic tags in mainPage.php