Add text region functionality