refactored index.php to be modular https://app.asana.com/0/15833644813498/15833644813498