Can we move the logic from LogDisplay into the LogDialog class? Is the LogDialog on a different thread than the LogDisplay? If not, why is there a mutex lock?