revert main window to previous size
revert settings window as close as possible to previous size