Moves UI calls in EDT.
Fixes ArrayOutOfBoundsException in message history.