ui and nasty thread.join from another thread