added emailgate and updated index.php