added ajax for return json data depending on selected route