refactor/clean text_view in order to reduce complexity
small fixes that were introduced in the refactoring