prevent form submission via menu button ok/cancel buttons