fix bugs with expanding textView