amended last change to check href instead of text