post page hiding logic