add code to have json response about elevator state