fix up visibility of tools in the viewer