have form posting and returning the appropriate json