method to pull url