Changes passing anchor reference from using index to text