correct edit link in tree view. fixes #166