handle all text class changes in one method