moved old theme functions to the layout.php