Main window geometry and state saving/reloading