store urls in webpages array directly
added logic for grabbing target link from 1st search if present