changed respond_to to json
changed route
got json response working