add event function for UIHTMLTextLabel.lua