better handling for hidden pages.