modified:check dialog command first