form upgraded with ajax and json