Added click handler to the tag toggle buttons and fixed string comparison