initial implementation for form submission