setting anchor for list elements in do tree