Try to correct multithread
Minor improvement gui