added back switch to categorize different tags