moved ini saving to query endsession so window size gets saved properly