Split of run-dialog part in separate file.