Add callbacks to publish actions