fixed new document view and chat