added ajax for result page