delete unnecessary content in edit.php