wiring up metadata (publish) button