Added id attr when publishing an item to pubsubs