Adding GUI, there is errors with the threads