Fixed the web request in main thread problem