assign class to clickable text elements