added support for hide/show documents part