updated api for survey submit