add dialog for showing result