finalize button prevent default