Add refresh functionality to text view