move text logic into seperate class