minor updates on window class

mainthread shouldn't be a thread i think ....