setting up form and ajax request