created callback function to update DOM upon successful AJAX call