create a form and ajax request