dry-refactored the tags view