getting link and button labels - first preliminary version.