added result dialog box after testing.