refactored tagging UI