TODO: close doc and open doc again

TODO: close documents and then open documents again