Hide publish button on click and show URL and Access Code