Full redisign download function. No more stop downloading when close main window