updated logic to remove duplicate tags in tag index view

per above