removed ajax datatype and prevent submission