[DEV] remove dependency of frend in the text viewer