Add function to display text