execute setUrl() before load() to avoid unnecessay loading