Enh: proper publish button and code