added setWindowPosition and getWindowPosition