saveing of window geometry and zoom factor