add scroll to text functionality