Add submit handler.