implemented persistence of window geometry and graphics settings