End edit documents