added event to unpublish_event method