added base classes to view plain text documents