Added seperate window for input to prevent sharing it between threads