getUrl method added