add form and js for ajax handling