make hide/show subpages safe