added select all logic to text activity.