Checking dialog code