moving head.php to global templates
dynamically allocate base