submit and on click sample