multithreading

check if processing is done before showing output panel