Completed the AJAX feature