change 'publish' function to 'finalize' button