dialog and check answer