front end and con form submission