offloaded homepage functions to functions.php