add functionality to text