add publish data and controller