TODO close docs and then open docs again

TODO close documents and then open documents again