before page publishing