This file needs lots of work. There's a new widget-hookup system that needs to be used. It's OK for now but before any new dialogs get accepted they need to start using the new framework. Come by tomorrow with @moritzdannhauer and I'll demonstrate it.