Now global showDialog status are blocked.  showDialog will be executed only when it is necessary.

(cherry picked from commit fb953e28adf2745f462839bc5b67fb25a292927d)