made so that it saves window position on query end session