fixed thread loading and ui