overwrote AJAX functions