refactor loading url request