This appears to be indented an extra level and could probably just be passed to dialog.show directly without the local.