rewrite,replace requests with urllib,update gui