fix UI in thread problems.