fixes in header.php,footer.php and functions.php