added hack to show unpublished posts in preview