added home and made index.php more generic