add sidebar on New Document and fix config deletion

New Document pages.