Added option to set initial position of the window