#87 save window frame after resizing
#87 use saved frame for main window