Move configuration dialog into separate module
Remove unneeded 'global'