split out html from index.php