fix button 'new document' and 'new type'