fix dialog region
rename doc to docId
set author and last_author field on model save
add document links modal
rework document edit ui
add links to json
cleanup