add callbacks to ajax request