closing without saving, well not redirect to the link you clicked. also fixed a couple little bugs with type_document and authority that reappeared.