closing editor upon successful sending
adding "save-document" button to editor
render api exceptions
show error message on sending document