publishing status changes using pubsub