fixed typo in form, added ajax form support