Added remembering the position of the window