add json response to details controller