fix edit.php and add stuff