Replaced layout.php to header.php and footer.php