editing ajax response type to try and get success working again