Header Publish button functionality