Slight refactor of the mod edit dialog constructor

Also some other insignificant refactors