change window size and fix unfinishing close bug

change window bigger and fixed a bug,when downloading go on,close window will report a bug on console.fixed.