example click and submit handler