revised to work with the new API of pubdictionaries.
the 'new document' button moved to the 'records' view.