refactored tag tree helper
more refactoring
refactored the helper and got links to photos