Fix DNA edit dialog, pass model as it's no longer a global variable

[#57914824]