added a check for the display of the "Advanced" tab when selecting a URL from custom field