crude implementation of publish button