reafactored to only set the tag name upon change view
scope.links now is a promise object so that we deal with async issues
refactored to use promise object for the get tag info function
now using tag.name instead of just tag.