adding on_enter for publish and unpublished states