added json response
moved response to random route