added demo api and form submission