avoid displaying unpublished pages