Trigger update for publish and unpublish