GPII-752: Move dialog visibility checks as an invoker.