refactor theme.tpl.php