Update for publish/delete

This fixes the javascript and templates for various inconsistencies.