working edit.php