only hide pages, not other objects. Closes #2829.