loading URL data and refresh main thread UI