cleaning up the copoy in layout.php