setup plain text document and text view