documents are now opened as read-only
Added an open dialog