changed alerts to adding text to index.php