modified the block to add the publish and public buttons