solve UI refresh problem