prepare header.php and footer.php