Split index.php into 3 files for index, header, and footer