made searchInURL function