added ajax callback for results