minor changes to add.php