Some cleanup of the edit.php