tree-based view of references
update the icon
use two buttons instead of one
misc fixes to tree layout