use thread for text, should fix freeze