add function to TextViewController:show typed text