Reverted main.php to original code

Transfered namespaced.php content to tpl_header.php before removing it