small fix: hide links to sub_pages according to block state