Fix click handler for firefox and other browsers to preven form submission on cancel