add new document dialog and implemented