moved more text related stuff to TextManager