extracted header and footer code and put them in header.php and footer.php files