prevent form submission in examples