cleanup warnings on front.php and header.php